
// const path = ['销售管理', '现货管理','新建'];

const tableHeaderData = [
	{
		prop:'goodsNo',
		label:'商品编码',
		width:'',
		show:true,
	},
	{
		prop:'customGoodsVo.salesType',
		label:'销售分类',
		width:'',
		show:true,
	},
	{
		prop:'describe',
		label:'描述',
		width:'160',
		show:true,
	},
	{
		prop:'deliveryTime',
		label:'预计交期',
		width:'',
		show:true,
	},
	{
		prop:'totalPrice',
		label:'商品应付总金额',
		width:'160',
		show:true,
	},
	{
		prop:'fee',
		label:'定制服务费',
		width:'140',
		show:true,
	},
	{
		prop:'price',
		label:'商品金额',
		width:'120',
		show:true,
	},
	{
		prop:'warehouseName',
		label:'商品所在仓',
		width:'160',
		show:true,
	},
	{
		prop:'inventory',
		label:'商品可用库存',
		width:'140',
		show:true,
	},
	{
		prop:'count',
		label:'数量',
		width:'',
		show:true,
	},
	{
		prop:'isAddLogoWord',
		label:'外圈是否加DR LOGO',
		width:'200',
		show:true,
	},
	{
		prop:'isHighWord',
		label:'是否允许高配',
		width:'140',
		show:true,
	}
]
const basicMsgData = [
	{
		label:'客户手机号',
		value:''
	},
	{
		label:'男士姓名',
		value:''
	},
	{
		label:'女士联系方式',
		value:''
	},
	{
		label:'女士姓名',
		value:''
	},
	
]
const basicMsgData2 = [
	{
		label:'销售人',
		data:[
			{
				label:'1',
				value:'1'
			},
			{
				label:'0',
				value:'0'
			}
		],
		value:'',
		isRequired:true,
		isDisabled:true
	},
]

const sliderSelect = {
	weight:{
		value:0,
		option:[],
		sliderVal:[0,0],
	},
	/*size:{
		value:20,
		option:[],
		sliderVal:[0,0],
	}*/
}

const filterOption2 = {
	items: [{
		label: "销售分类",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "origin"
    },
    {
		label: "系列",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		filterable:true,
		value: undefined,
		key: "series"
    },
    {
		label: "款式名称",
		type: "dropdown",
		data: [],
		filterable:true,
		placeholder: "请选择",
		value: undefined,
		key: "modelName"
    },
	],

};
const filterOption3 = {
	/* 
	  手寸范围  saleStyleHandRanges
	  钻重范围  saleStyleInlaiedScoopRanges
	*/
	items: [{
		label: "主石形状",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "theMainStoneShape",
		disabled: true,
	},
	{
		label: "主石材质",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "mainStone1Material",
		disabled: true,
	},
	{
		label: "主石外观",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "theMainStoneAppearance",
		disabled: true,
	},
	{
		label: "材质",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "bracketMaterial",
		required: true,
	},
	{
		label: "手寸",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "handInch",
		required: true,
	},
	{
		label: "净度",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "cleanliness"
	},
	{
		label: "对称",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "symmetric"
	},
	{
		label: "抛光",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "polishing"
	},
	{
		label: "链长",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "startChainLength"
	},
	{
		label: "颜色",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "color"
	},
	{
		label: "切工",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "cut"
	}],
	btnGroup: [{
			label: '查询',
			type: 'search'
		},
		{
			label: '清空',
			type: 'clear'
		}
	]
};
const tableHeaderData2 = [
	{
		prop:'modelName',
		label:'款式名称',
		width:'',
	},
	{
		prop:'category',
		label:'品类',
		width:'',
	},
	{
		prop:'aSeriesOfName',
		label:'系列',
		width:'',
	},
	{
		prop:'photoUrl',
		label:'图片',
		width:'',
	},
	/*{
		prop:'',
		label:'条码',
		width:'',
	},*/
	{
		prop:'handInch',
		label:'手寸',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'bracketMaterial',
		label:'材质',
		width:'',
	},
	{
		prop:'drillingWeight',
		label:'钻重',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'shape',
		label:'主石形状',
		width:'',
	},
	{
		prop:'appearance',
		label:'主石外观',
		width:'',
	},
	{
		prop:'cut',
		label:'切工',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'polishing',
		label:'抛光',
		width:'',
	},
	{
		prop:'color',
		label:'颜色',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'cleanliness',
		label:'净度',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'symmetric',
		label:'对称',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'price',
		label:'价格/RMB',
		width:'140',
		sortable:'sortable',
	}
]
//订单数据
const params = {
	isReorder:false,
	isFirst:true,	
	isNewUser:true,
	trueLoveDate:undefined,
	loveConfirmation:undefined,
	orderType:20,	
	originChannel:'',
	salesman:"a",	
	shipper:"b",
	remarks:'',
	currency:"RMB",
	orderAmount:'',
	amountPayable:'',
	payAmount:'',
	mobile:	'',
	customerId:1,
	manName:'',
	womanName:'',
	idCard:'',
	sexuality:'',
	exclusiveCode:'',
	goodsList:[],
	shippingMethod:'',
	shipper:'',
	saleReceivingList:[],
	isPayInFull:true,
	isPosPay:'1',
	expectReceiveTime:''
}
const options = []
const searchFromData3 = {}
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
const props = {
	label:'label',
	value:'code',
	children:'children'
}
//自提
const userSelfLift = {}
let Model = {
	data() {
		return {
			Model: {
				paginationObject,
				firstStep:true,
				secondStep:false,
				thirdStep:false,
				fourthStep:false,
				womanRingStatus:false,			//是否有女戒显示提示
				womanRingPay:false,
				sliderSelect,		
				basicMsgData2,
				checkList:'',
				addtype:'',						//地址类型
				Address:'',						//详细地址
				sexuality:'',
				trueLoveDate:'',				//真爱日期
				loveConfirmation:'',
				exclusiveCode:'',				//专属编码
				loveDeclaration:'',				//爱的礼物宣言
				opt:'',
				dialogTableChecked:'',
				params:params,
				changeGoodsDialogFlag:false,
				basicMsgDisabled:true, 			//基础信息禁选
				changeAddress:false,			//选择地址弹窗
				shouldLettering: false,
				isHighClass: false,
				isLogo: false,
				letteringContent: '',
				haveAdress:false,				//选择默认地址
				radioAddress:'1',				//地址
				checkedAddress:{				//当前操作的地址
					addressType:'0'
				},				
				options:options,
				selectedOptions:[],
				props:props,
				selectedOptions3:[],
				tableHeaderData,
				tableHeaderData2,
				tableData:[],
				tableDataDialog:[],
				TableSelectData:[],
				idData:[],
				totlePrice:'',					//合计价格
				searchObj:{},					//表单数据
				linktoResult:{},
				userSelfLift,					//自提数据
				allCities:[],					//全部城市
				cityStore:[],					//城市下门店
				searchFromData3:{},
				payPos:false,			
				

				customFee:800,			//test
				coupon:'0',				//test
				payMethod:'1',
				
				filterOption2,
				defaultFilterOption2: filterOption2,
				filterOption3,
				tab1TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
			}
		}
	}
}
export default Model;
